/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkg1;

import java.util.ArrayList;

/**
 * Objects of this class represent Nurses in the domain model
 * @author Nick
 */
public class Nurse implements Provider{
    //Name of the nurse
    private String name;
    //Unique ID of the nurse
    private int id;
    //Patients overseen by the nurse
    private ArrayList<Patient> patients = new ArrayList<Patient>();
    //Constructor for a new nurse
    public Nurse(String name, int id) {
        this.name = name;
        this.patients = patients;
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the patients
     */
    public ArrayList<Patient> getPatients() {
        return patients;
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }
    
    /**
     * based on the nurses name and ID.
     * @return a string representing the nurse
     */
    public String toString() {
        return name + " (Id: " + id + ")";
    }
}
